Skip to content

docs(mcp): add dynamic MCP client selection example #3751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

paoxiaomooo
Copy link
Contributor

  • demonstrate how to filter injected MCP clients by server name
    using getServerInfo().name()

This helps users dynamically choose which MCP services to expose
based on context (e.g. permissions, intent), instead of registering
all available tools unconditionally.

demonstrate how to filter injected MCP clients by server name
  using getServerInfo().name()

Signed-off-by: Sizhe Fan <[email protected]>
@liuhongwei1998
Copy link

good

@ilayaperumalg ilayaperumalg self-assigned this Jul 16, 2025
@ilayaperumalg ilayaperumalg added documentation Improvements or additions to documentation MCP labels Jul 16, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.x milestone Jul 16, 2025
@ilayaperumalg
Copy link
Member

@paoxiaomooo Thanks for the documentation update!

@ilayaperumalg ilayaperumalg merged commit ffad572 into spring-projects:main Jul 16, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Jul 16, 2025
Fixes #3751

demonstrate how to filter injected MCP clients by server name
  using getServerInfo().name()

Signed-off-by: Sizhe Fan <[email protected]>
(cherry picked from commit ffad572)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants